package com.shelpe.services.sinbad.controller.dto;

import com.shelpe.services.sinbad.entity.jpa.Adgroup;
import com.shelpe.services.sinbad.model.RptKeywordDto;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class KeywordEffectDto extends KeywordDto {
	private EffectDto effect;

	@Override
	public void from(RptKeywordDto rptKeyword, Adgroup adgroup) {
		super.from(rptKeyword, adgroup);
		this.setEffect(new EffectDto());
		this.getEffect().from(rptKeyword);
	}
}
